
import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        user:JSON.parse(sessionStorage.getItem("user")),
        menus: [],
        menusText:[],
        Member:JSON.parse(sessionStorage.getItem("Member")),
    },
    mutations: {
        load(state, play) {
            state.user = play;
        },
        menus(state, play) {
            state.menus = play;
        },
        getBreadcrumbNames(state, play) {
            state.menusText = play;
        },
        getBreadcrumbNames(state, play) {
            state.menusText = play;
        },
        setMember(state, play) {
            state.Member = play;
        },


    }
})

